package com.zuipin.service;

import java.util.List;

import com.zuipin.entity.${className!""};
import com.zuipin.util.Pagination;

/**
 * ${remark!""}service
 * 
 * @ClassName: I${className!""}Service
 * @Description: TODO
 * @author ${author!"robot"}
 * @date 2017年3月27日 上午10:48:01
 */
public interface I${className!""}Service {
	/**
	 * 查询${remark!""}
	 * @Title: findById
	 * @author ${author!"robot"}
	 * @date ${.now?string("yyyy年MM月dd7日 HH:mm:ss")}
	 * @param <#list propertyEntityList as pro><#if pro.pkType=1>${pro.propName}</#if><#if !pro_has_next>,</#if></#list>
	 * @return
	 * @return ${className!""}
	 */
	public ${className!""} findBy${PKName!""}(<#assign i=0 /><#list propertyEntityList as pro><#if pro.pkType=1><#if (i>0) >,</#if> ${pro.propType} ${pro.propName}<#assign i=i+1 /></#if></#list>);
	
	/**
	 * 插入${remark!""}
	 * 
	 * @Title: insert
	 * @author ${author!"robot"}
	 * @date ${.now?string("yyyy年MM月dd7日 HH:mm:ss")}
	 * @param ${obName!""}
	 * @return void
	 */
	public void insert(${className!""} ${obName!""});
	
	/**
	 * 更新${remark!""}
	 * 
	 * @Title: update
	 * @author ${author!"robot"}
	 * @date ${.now?string("yyyy年MM月dd7日 HH:mm:ss")}
	 * @param ${obName!""}
	 * @return void
	 */
	public void update(${className!""} ${obName!""});
	
	/**
	 * 删除${remark!""}
	 * @Title: delete
	 * @author ${author!"robot"}
	 * @date ${.now?string("yyyy年MM月dd7日 HH:mm:ss")}
	 * @param <#list propertyEntityList as pro><#if pro.pkType=1>${pro.propName}</#if><#if !pro_has_next>,</#if></#list>
	 * @return void
	 */
	public void delete(<#assign i=0 /><#list propertyEntityList as pro><#if pro.pkType=1><#if (i>0) >,</#if> ${pro.propType} ${pro.propName}<#assign i=i+1 /></#if></#list>);
	
	/**
	 * 搜索${remark!""}
	  *  @Title: seach${className!""}
	  * @author ${author!"robot"}
	  * @date ${.now?string("yyyy年MM月dd7日 HH:mm:ss")}
	  * @param ${obName!""}
	  * @param page
	  * @return
	  * @return List<${className!""}>
	 */
	public List<${className!""}> seach${className!""}(${className!""} ${obName!""}, Pagination page);
}
